﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SL8.SL;
using System.ComponentModel.DataAnnotations;

namespace JsonViewer
{
    public class JsonKeyValue : ObservableObject
    {
        /// <summary>
        /// 属性名
        /// </summary>
        [Display(Name = "属性")]
        public string Key
        {
            get
            {
                return this.GetCacheValue(o => o.Key, default(string));
            }
            set
            {
                this.SetCacheValueAndValidate(o => o.Key, value);
            }
        }


        /// <summary>
        /// 属性说明
        /// </summary>
        [Display(Name = "值")]
        public string Value
        {
            get
            {
                return this.GetCacheValue(o => o.Value, default(string));
            }
            set
            {
                this.SetCacheValueAndValidate(o => o.Value, value);
            }
        }
    }
}
